<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html>
<head>
  <title>国际化与验证测试</title>
</head>
<body>
<s:text name="label0" />
<!-- fielderror标签用于显示Action添加的字段错误，以无序列表形式显示在当前页面 -->
<s:fielderror />
<s:form action="global!test" method="post">
  <s:textfield name="data.field1" key="field1" />
  <s:select name="data.field2" list="#{'true':'真','false':'假'}" key="field2" />
  <s:textfield name="data.field3" key="field3" />
  <s:submit value="%{getText('login.submit')}" />
</s:form>
</body>
</html>
